# -*- coding: utf-8 -*-(for Scipe)
# airplane with ELECTRIC  motor
#____________flight control functions depending on @M1/ _____________________________________
#use the stick M1 and make the flight variables:
#  thr = electric motor value -100 100
DEF $thr     #channel nr of the thr servo
thr.1: INIT -50
thr.2: INIT 0
thr.3: INIT 50
thr   CURVE @M1 -100 100  -50 thr.1: 0 thr.2:  50 thr.3:  100 -100             # thr curve

IF @S1 #Security switch electric motor
	thr = -100 #off
ENDIF
@V$thr OUT  thr 1.55 .55
# not in use
courb = 0
brake = 0
